// 克隆对象
function clone(origin) {
    return Object.assign({}, origin);
  }
// 如果要保持继承链
function clone(origin) {
    let originProto = Object.getPrototypeOf(origin);
    return Object.assign(Object.create(originProto), origin);
  }